/*
 * @Descripttion: 
 * @version: 
 * @Author: chenWeiLong
 * @Date: 2022-03-12 14:57:46
 * @LastEditors: please set LastEditors
 * @LastEditTime: 2022-03-12 15:26:26
 */

export const setStorage = (key: string, value: any) => {
   return localStorage.setItem(key, JSON.stringify(value))
}
export const getStorage = (key: string) => {
   return localStorage.getItem(key) ? JSON.parse(localStorage.getItem(key) as string) : {}
}